<?php

namespace common\models\user;

use Yii;

/**
 * This is the model class for table "{{%user_signin_log}}".
 *
 * @property int $id
 * @property int $user_id
 * @property int $ip 签到IP
 * @property int $serial 最近连续签到数
 * @property int $created_at
 * @property int $repaired_at
 */
class UserSigninLog extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%user_signin_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['user_id', 'ip', 'serial', 'created_at', 'repaired_at'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'ip' => '签到IP',
            'serial' => '最近连续签到数',
            'created_at' => '签到时间',
            'repaired_at' => '补签时间',
        ];
    }

}
